<?php if($sf_user->isAuthenticated()):?>
                                     <?php if($sf_request->getParameter('module')=='profile'):?>
                                     <?php echo link_to(__('Home'),'profile/mypage','class="curent"')?>
                                     <?php else: ?>
                                      <?php echo link_to(__('Home'),'profile/mypage')?>
                                     <?php endif ?>
<?php else: ?>
                                     <?php if($sf_request->getParameter('module')=='mainpage'):?>
                                     <?php echo link_to(__('Home'),'@home','class="curent"')?>
                                     <?php else: ?>
                                      <?php echo link_to(__('Home'),'@home')?>
                                     <?php endif ?> 
<?php endif ?>
                                     <?php if($sf_request->getParameter('action')=='advform'):?>
                                     <?php echo link_to(__('Search'),'search/advform','class="curent"')?>
                                     <?php else: ?>
                                      <?php echo link_to(__('Search'),'search/advform')?>
                                     <?php endif ?>

                                     <?php if($sf_request->getParameter('module')=='gallery'):?>
                                     <?php echo link_to(__('Ladies'),'@gallery_woman','class="curent"')?>
                                     <?php else: ?>
                                      <?php echo link_to(__('Ladies'),'@gallery_woman')?>
                                     <?php endif ?>
<?php if($sf_user->isAuthenticated()):?>
                                     <?php if($sf_request->getParameter('module')=='search' and $sf_request->getParameter('action')=='index' ):?>
                                     <?php echo link_to(__('Live Chat'),'http://alika-love-agency.com/chat/dispatcher.php','class="curent"')?>
                                     <?php else: ?>
                                      <?php echo link_to(__('Live Chat'),'http://alika-love-agency.com/chat/dispatcher.php')?>
                                     <?php endif ?>
<?php else: ?>

                                     <?php echo link_to(__('Live Chat'),'@registration')?>

<?php endif ?>

                                     <?php if($sf_request->getParameter('module')=='service' ):?>
                                     <?php echo link_to(__('Услуги'),'@service','class="curent"')?>
                                     <?php else: ?>
                                      <?php echo link_to(__('Услуги'),'@service')?>
                                     <?php endif ?>

                                     <?php if($sf_request->getParameter('module')=='contact'):?>
                                     <?php echo link_to(__('О нас'),'@contact','class="curent"')?>
                                     <?php else: ?>
                                      <?php echo link_to(__('О нас'),'@contact')?>
                                     <?php endif ?>



                                     <?php if($sf_request->getParameter('module')=='news' ):?>
                                     <?php echo link_to(__('Happy stories'),'@news_list','class="curent"') ?>
                                     <?php else: ?>
                                     <?php echo link_to(__('Happy stories'),'@news_list') ?>
                                     <?php endif ?> 
                                     

                                      <?php if($sf_request->getParameter('module')=='page' and sfContext::getInstance()->getRequest()->getParameter('id')==4 ):?>
                                     <?php echo link_to(__('FAQ'),'@faq','class="curent"')?>
                                     <?php else: ?>
                                      <?php echo link_to(__('FAQ'),'@faq')?>
                                     <?php endif ?> 
            
    
         